package bean;

import java.util.HashSet;
import java.util.Map;
import java.util.Set;

import org.springframework.beans.factory.BeanNameAware;

public class JohnBean {
	private String uname;
	private TomBean tb;
	private FactoryBean fb;
	private Set<String> tels; 
	private Map<String,String> tels2;
	public void setTels2(Map<String, String> tels2) {
		this.tels2 = tels2;
	}


	public void setFb(FactoryBean fb) {
		this.fb = fb;
	}


	public void setTels(Set<String> tels) {
		this.tels = tels;
	}


	public void setTb(TomBean tb) {
		this.tb = tb;
	}


	public JohnBean(){
		System.out.println("JohnBean constructing.....");
	
	}
	
	
	public void setName(String name) {
		this.uname = name;
	}
	
	public void say() {
		System.out.println("uname= " + uname);
		
		for(String s:tels){
			System.out.println(s);
		}
		
		System.out.println(tels.getClass().getName());
		
		for(String k:tels2.keySet()){
			System.out.println("key" + tels2.get(k));
			
		}
		
	}
	
	
		

}
